package utils

import (
	"github.com/gogf/gf/v2/frame/g"
	"time"
)

type CaptchaDoReq struct {
	g.Meta `method:"post" tags:"Captcha" summary:"captcha api"`
}

// CaptchaDoRes path:"/backend/utils/captcha/get.do"
type CaptchaDoRes struct {
	g.Meta `mime:"application/json"`
	B64s   string `json:"b64s"`  //base64编码图片
	IdKey  string `json:"idKey"` //验证码ID
}

// RefreshTokenDoReq path:"/backend/utils/captcha/refresh_token.do"
type RefreshTokenDoReq struct {
	g.Meta `method:"post" tags:"Captcha" summary:"captcha api"`
}
type RefreshTokenDoRes struct {
	Token  string    `json:"token"`
	Expire time.Time `json:"expire"`
}
